package com.sena.crawler.enums;

/**
 * @author Admin
 */

public enum RegexTypeEnums {

    M_PHONE_REGEX("^(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$", "手机号码"),
    PHONE_REGEX("\\d{3}-\\d{8}|\\d{4}-\\d{7}", "电话号码"),
    ID_CARD("(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)", "身份证号码"),
    BANK_CODE("^([1-9]{1})(\\d{14}|\\d{18})$", "银行卡号码"),
    HOME_ADDRESS("([^省]+省|.+自治区|[^市]+市)([^自治州]+自治州|[^市]+市|[^盟]+盟|[^地区]+地区|.+区划)([^市]+市|[^县]+县|[^旗]+旗|.+区)", "家庭住址");


    RegexTypeEnums(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    /**
     * codeType
     */
    private String code = null;

    /**
     * 描述
     */
    private String desc = null;

}
